package com.suray.wcs.service.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.suray.wcs.service.system.entity.OperationLogDB;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * 操作日志 Mapper 接口
 * </p>
 *
 * @author cooper
 * @since 2019-06-26
 */
@Mapper
public interface OperationLogDBMapper extends BaseMapper<OperationLogDB> {

    /**
     * 新增操作日志
     *
     * @param operLog 操作日志对象
     */
    public void insertOperlog(OperationLogDB operLog);

    /**
     * 查询系统操作日志集合
     *
     * @param operLog 操作日志对象
     * @return 操作日志集合
     */
    public List<OperationLogDB> selectOperLogList(OperationLogDB operLog);

    /**
     * 批量删除系统操作日志
     *
     * @param operIds 需要删除的操作日志ID
     * @return 结果
     */
    public int deleteOperLogByIds(Long[] operIds);

    /**
     * 查询操作日志详细
     *
     * @param operId 操作ID
     * @return 操作日志对象
     */
    public OperationLogDB selectOperLogById(Long operId);

    /**
     * 清空操作日志
     */
    public void cleanOperLog();

    void deleteSysLog(Integer days);

    void deleteSysOperLog(Integer days);
}
